package com.china.book.service.impl;

import com.china.book.dao.UserEntityDao;
import com.china.book.domain.UserEntity;
import com.china.book.service.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/2/11 0011.
 */
@Slf4j
@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private UserEntityDao userDao;

    @Override
    public UserEntity findByUserName(String username) {
        log.info("username：{}", username);
        return userDao.findByUsername(username);
    }
}
